package common;

import common.util.NodeUtil;

import java.util.List;

/**
 * @author : wenchao.long
 * @date : Created in 2021/7/15 10:48 周四
 * @description : N叉树
 */
public class Node {

    public int val;
    public List<Node> children;

    public Node() {
    }

    public Node(int val) {
        this.val = val;
    }

    public Node(int val, List<Node> children) {
        this.val = val;
        this.children = children;
    }

    public static void main(String[] args) {
        Node root = NodeUtil.create(1, null, 2, 3, 4, 5, null, null, null, null, 6, 7, null, null, 8, null, null, 9, 10, null, null, null, null, 11, null, null, 12, null, null, 13, null, null, null, null, 14, null);
        NodeUtil.levelOrderList(root);
    }
}
